package org.kjtc.controller;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import org.kjtc.util.Tools;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class SystemTimeController extends BaseController{

	@RequestMapping(value = "/getSystemTime")
	@ResponseBody
	public Map<String, Object> getSystemTime (){
		Map<String, Object> map = new HashMap<String, Object>();
		Date nowTime = new Date();
		String systemTime = Tools.date2Str(nowTime);
		map.put("systemTime", systemTime);
		nowTime = null;
		return map;
	}
}
